Searches for the specified object among the elements of the view and returns the zero-based ordinal position of its first occurrence.
'Declaration
Public Function IndexOf( _
ByVal As _
) As System.Integer
public System.int IndexOf(
)
Parameters
- item
- The object to locate in the view.
Return Value
The zero-based ordinal position of the first occurrence of item in the view, if found; otherwise, -1.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2